package cn.bdqn.comsumer1.controller;

import cn.bdqn.comsumer1.feign.HelloFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @Autowired
    private HelloFeign helloFeign;

    //添加一个注释
    @GetMapping("/hello")
    public String hello(){
        return helloFeign.hello();
    }
}
